// 首页相关api函数
import request from "@/utils/request";

/**
 * 获取品牌数据
 * @param {Integer} limit - 品牌个数
 * @returns Promise
 */
export const getBrand = (num = 6) => {
  return request('/home/brand', 'get', { limit: num })
}

// 获取首页的轮播图
export const getBanner = () => {
  return request('/home/banner', 'get')
}

// 获取新鲜好物
export const getNew = () => {
  return request('/home/new', 'get')
}

// 获取人气推荐
export const getHot = () => {
  return request('/home/hot', 'get')
}

// 获取商品板块
export const getGoods = () => {
  return request('/home/goods', 'get')
}

// 获取最新专题
export const getSpecial = () => {
  return request('/home/special', 'get')
}
